CMAKE_MINIMUM_REQUIRED (VERSION 2.8)

# include common file
include( ../CMakeCommonFile.txt )

# get subdir list from current dir
GLIB_GET_SUBDIR_LIST(${CMAKE_CURRENT_SOURCE_DIR} subdir_list)

# add subdir, exclude build dir
FOREACH(subdir ${subdir_list})
    if(NOT(${subdir} STREQUAL "build"))
        ADD_SUBDIRECTORY (${subdir})
    endif(NOT(${subdir} STREQUAL "build"))
ENDFOREACH(subdir)